<template>
  <van-row class="Title-box" :class="{ addMarginTop: addTop }">
    <van-col class="Title" span="24">{{ title }}</van-col>
  </van-row>
</template>

<script>

export default {
  data() {
    return {};
  },
  props: ["title", "addTop"],
};
</script>

<style lang="less" scoped>
.Title-box {
  &.addMarginTop {
    margin-top: 20px;
  }
  background-color: #fff;
  height: 0.4rem;
  .Title {
    text-align: center;
    font-size: 0.2rem;
    line-height: 0.4rem;
  }
}
</style>
